import abs from './absrightmenuitemaction.js'
var state = -1;
class SwitchStateAction extends abs.IRightMenuItemAction {
    constructor(map) {
        super(map);
    }
    act2Click(evt, subitem) {
        console.log("SwitchStateAction:xxx---------");
        let ret = this.mapctrl.m_dynamicINTF.switchState(0,state);
        if (ret >= 0){
            state++;
        }
        else{
            state = -1;
        }
    }
}

export default { SwitchStateAction }